#_*_ coding : utf-8 _*_
import time
from threading import Thread

def fun_print2(num:int, string:str="__testing__", iinterval:int=2):    
    for i in range(num):
        print("i:[{}] -- interval[{}]".format(i, iinterval))
        time.sleep(iinterval)

def fun_print3(num:int, string:str="__testing__", iinterval:int=3):    
    for t in range(num):
        print("t:[{}] -- interval[{}]".format(t, iinterval))
        time.sleep(iinterval)

def run_pool():
    t_args = [(20, 2), (20, 3)]
    # t1 = Thread(target=fun_print2, args=t_args[0])
    # t2 = Thread(target=fun_print3, args=t_args[1])
    t1 = Thread(target=fun_print2(20))
    t2 = Thread(target=fun_print3(20))

    t1.start()
    t2.start()

    t1.join()
    t2.join()

if __name__ == "__main__":
    run_pool()
    print("Hello python")


